<script setup lang="ts">
import { defineProps } from 'vue';
interface IProps {
  time: string;
  place: string;
  openTime: string;
}
const props = defineProps<IProps>();
</script>

<template>
  <div class="row">
    <img
      src="@/views/activityPages/assets/arcoDesign-location.png"
      class="img"
      mode="scaleToFill"
    />
    <div style="width: 3px"></div>
    <text class="subText"
      >门店地址:
      {{ place || '府城大道505号仁和新城负一楼67号 (麦当劳旁)' }}</text
    >
  </div>
  <div class="row">
    <img
      src="@/views/activityPages/assets/calendar.png"
      class="img"
      mode="scaleToFill"
    />
    <div style="width: 3px"></div>
    <text class="subText">
      营业时间: {{ openTime || '周一至周日：24h营业' }}</text
    >
  </div>

  <div class="row">
    <img
      src="@/views/activityPages/assets/clock.png"
      class="img"
      mode="scaleToFill"
    />
    <div style="width: 3px"></div>
    <text class="subText"
      >预约时间: {{ time || '2023-03-01 10：11～2025-03-01 10：11' }}</text
    >
  </div>
</template>

<style scoped lang="scss">
.detail {
  background-color: #f5f5f5;
}

.title {
  padding-top: 10px;
  padding-bottom: 10px;
  font-weight: bold;
}

.buttonBuyNow {
  width: 100%;
  height: 30px;
  line-height: 20px;
  border-radius: 20px;
  background-color: rgba(236, 94, 65, 1);
  color: rgba(255, 255, 255, 1);
  font-size: 14px;
  text-align: center;
  font-family: Microsoft Yahei;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.addButton {
  background-color: #f9df50;
  border-radius: 9999px;
  width: 30px;
  height: 30px;
}

.divider {
  width: 999px;
  height: 2px;
  background-color: #f5f5f5;
  // border: 1px solid rgba(245, 245, 245, 1);
}

.greyBox {
  padding: 10px;
  line-height: 20px;
  border-radius: 5px;
  background-color: rgba(98, 98, 98, 0.14);
  color: rgba(16, 16, 16, 1);
  font-size: 14px;
  text-align: center;
  font-family: Roboto;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
}

.text1 {
  padding: 10px;
  border-radius: 5px;
  background-color: rgba(98, 98, 98, 0.14);
  color: rgba(102, 102, 102, 1);
  font-size: 12px;
  margin-right: 20px;
}

.card {
  line-height: 20px;
  border-radius: 10px;
  background-color: white;
  color: rgba(16, 16, 16, 1);
  font-size: 14px;
  text-align: left;
  font-family: Roboto;
  padding: 10px;
  align-items: flex-start;

  display: flex;
  flex-direction: column;
}

.titleText {
  line-height: 20px;
  color: rgba(16, 16, 16, 1);
  font-size: 14px;
  text-align: left;
  font-family: PingFangSC-regular;
  font-weight: bold;
}

.free {
  line-height: 28px;
  color: rgba(50, 140, 0, 1);
  font-size: 20px;
  text-align: left;
  font-family: PingFangSC-regular;
}

.row {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.img {
  width: 12px;
  height: 12px;
}

.subText {
  color: rgba(153, 153, 153, 1);
  font-size: 10px;
  text-align: left;
}

.text12 {
  color: rgb(102, 102, 102);
  font-size: 12px;
  // text-align: left;
  text-align-last: justify;
  font-family: PingFangSC-regular;
}

.button {
  align-items: center;
  justify-content: center;
  width: 166px;
  height: 35px;
  line-height: 20px;
  border-radius: 20px;
  background-color: rgba(90, 187, 105, 1);
  color: rgba(255, 255, 255, 1);
  font-size: 14px;
  text-align: center;
  font-family: Microsoft Yahei;
  border: 0;
}

.bottom {
  position: fixed;
  bottom: calc(var(--window-bottom));
  z-index: 1030;
  margin-bottom: 0px;
}
</style>
